
package com.fis.mca.persistence;

import java.io.Serializable;
import java.util.Date;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;



/**
 * <p>Java class for mcaInteraction complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="mcaInteraction">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="code" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="createDatetime" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
 *         &lt;element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="interactionId" type="{http://www.w3.org/2001/XMLSchema}long"/>
 *         &lt;element name="mcaAction" type="{http://interaction.mca.fis.com/}mcaAction" minOccurs="0"/>
 *         &lt;element name="mcaMessage" type="{http://interaction.mca.fis.com/}mcaMessage" minOccurs="0"/>
 *         &lt;element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="type" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "mcaInteraction", propOrder = {
    "code",
    "createDatetime",
    "description",
    "interactionId",
    "mcaAction",
    "mcaMessage",
    "name",
    "type"
})
public class McaInteraction implements Serializable {

    protected String code;
    @XmlSchemaType(name = "dateTime")
    protected Date createDatetime;
    protected String description;
    protected long interactionId;
    protected McaAction mcaAction;
    protected McaMessage mcaMessage;
    protected String name;
    protected String type;

    /**
     * Gets the value of the code property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getCode() {
        return code;
    }

    /**
     * Sets the value of the code property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setCode(String value) {
        this.code = (value == null) ? value : value.toUpperCase().trim();
    }

    /**
     * Gets the value of the createDatetime property.
     * 
     * @return
     *     possible object is
     *     {@link Date }
     *     
     */
    public Date getCreateDatetime() {
        return createDatetime;
    }

    /**
     * Sets the value of the createDatetime property.
     * 
     * @param value
     *     allowed object is
     *     {@link Date }
     *     
     */
    public void setCreateDatetime(Date value) {
        this.createDatetime = value;
    }

    /**
     * Gets the value of the description property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getDescription() {
        return description;
    }

    /**
     * Sets the value of the description property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setDescription(String value) {
        this.description = (value == null) ? value : value.trim();
    }

    /**
     * Gets the value of the interactionId property.
     * 
     */
    public long getInteractionId() {
        return interactionId;
    }

    /**
     * Sets the value of the interactionId property.
     * 
     */
    public void setInteractionId(long value) {
        this.interactionId = value;
    }

    /**
     * Gets the value of the mcaAction property.
     * 
     * @return
     *     possible object is
     *     {@link McaAction }
     *     
     */
    public McaAction getMcaAction() {
        return mcaAction;
    }

    /**
     * Sets the value of the mcaAction property.
     * 
     * @param value
     *     allowed object is
     *     {@link McaAction }
     *     
     */
    public void setMcaAction(McaAction value) {
        this.mcaAction = value;
    }

    /**
     * Gets the value of the mcaMessage property.
     * 
     * @return
     *     possible object is
     *     {@link McaMessage }
     *     
     */
    public McaMessage getMcaMessage() {
        return mcaMessage;
    }

    /**
     * Sets the value of the mcaMessage property.
     * 
     * @param value
     *     allowed object is
     *     {@link McaMessage }
     *     
     */
    public void setMcaMessage(McaMessage value) {
        this.mcaMessage = value;
    }

    /**
     * Gets the value of the name property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getName() {
        return name;
    }

    /**
     * Sets the value of the name property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setName(String value) {
        this.name = (value == null) ? value : value.trim();
    }

    /**
     * Gets the value of the type property.
     * 
     */
    public String getType() {
        return type;
    }

    /**
     * Sets the value of the type property.
     * 
     */
    public void setType(String value) {
        this.type = (value == null) ? value : value.trim();
    }

}
